<?php

/**
 * MVM_MALL 网上商店系统 首页文件
 * ============================================================================
 * 版权所有 (C) 2007-2010 www.mvmmall.com，并保留所有权利。
 * 网站地址: http://www.mvmmall.com
 * ----------------------------------------------------------------------------
 * 这是一个免费开源的软件；这意味着您可以在不用于商业目的的前提下对程序代码
 * 进行修改、使用和再发布。
 * ============================================================================
 * $Author:  www.mvmmall.com  $
 * $Date: 2008-06-28 $
 * $Id: index.php  www.mvmmall.com$
 * ---------------------------------------------
*/
define('MVMMALL_SCR','index');
require_once 'include/common.inc.php';
require_once MVMMALL_ROOT . 'counter.php';
require_once MVMMALL_ROOT . 'header.php';
//投票向导
$po_list  = $cache->get_cache('poll');
if ($po_list['poll_num']){
	for($i=1;$i<=$po_list['poll_num'];$i++){
		$poll_temp = "poll_answer".$i;
		$poll_view .= "<input type='radio' name='radiobutton' value='radiobutton' onclick='javascript:select_radio($i)'>"
		. $po_list[$poll_temp] . "<br />\n";
	}
}

/**
 * **popu广告窗口**
 */
$popup_list = $cache->get_cache('poup');

//广告
include_once $user_url.'config/flash_cyle.php';
@extract($cycle);

//友情链接
$friend_links = $cache->get_cache('links');

//标签
$result  = $db->query("SELECT tag_id, member_id, tag_name, COUNT(tag_id) AS tag_count FROM `{$tablepre}tag`  GROUP BY tag_name LIMIT 0,10");
	while ($rt = $db->fetch_array($result)) {
		$tag_name       = urlencode($rt['tag_name']);
		$rt['tag_name'] = "<a href='tag.php?action=view&tag_name=$tag_name' target='_blank'>$rt[tag_name] ($rt[tag_count]) </a>";
		$goods_tag[]    = $rt;
	}
include template('index');
footer();